import requests

cookies = {
    'ti_geo': 'country=CN^|city=GUANGZHOU^|continent=AS^|tc_ip=120.197.120.174',
    'ti_ua': 'Mozilla^%^2f5.0^%^20(Windows^%^20NT^%^2010.0^%^3b^%^20Win64^%^3b^%^20x64)^%^20AppleWebKit^%^2f537.36^%^20(KHTML,^%^20like^%^20Gecko)^%^20Chrome^%^2f94.0.4606.81^%^20Safari^%^2f537.36',
    'ti_bm': '',
    'bm_sz': '311B0D7F68CF721613657C2BC69E0BE8~YAAQFVCcJPXKilJ8AQAA+mXeoQ0GBsTofV/CPfdHsTzqNHawYBl/ReTLl1i6UYHpLz4Oq+l5JI5AsV+8Y8gmEaXmui4jY4I8MO95P/EDox2Parul+iFd1sw2KNCdt0Md8u8IoJWLncl2638YFEap9n2Ts9XfhJCUYpisUql1wGtHPoq9PZeoX02nfSytgQH7ILG8IypOzXP6YheD+62LIcRaOPopQRom2OkvFfp44o0xIX7bINg0nQ/+uqC6HWqkACTsEMsVhDgZS+aApvJBASpTNZ8A0IOBejkesOyIkm6wzsoOnQLmvd6CDmHgfikZKypOtdN/odHsgf5fG5tVAUxb6O5nrnHpSoL1bGoYiF1NkK6B9E4c44aAJcTFKxMy5oOvPh4s71Nn4XGxu2fkjM0=~3158340~4534325',
    'CONSENTMGR': 'ts:1634803279626^%^7Cconsent:true',
    'tiSessionID': '017ca1de670d001cfc3dffeb49d705072005206a00978',
    'tipage': '^%^2Ftistore^%^2Fquick^%^20add^%^20to^%^20cart-en',
    'tipageshort': 'quick^%^20add^%^20to^%^20cart-en',
    'ticontent': '^%^2Ftistore',
    'ga_page_cookie': 'quick^%^20add^%^20to^%^20cart-en',
    'ga_content_cookie': '^%^2Ftistore',
    'user_pref_language': '^\\^en-US^\\^',
    'user_pref_currency': '^\\^USD^\\^',
    'last-domain': 'www.ti.com.cn',
    '_ga': 'GA1.3.1000017217.1634803280',
    '_gid': 'GA1.3.1438663268.1634803280',
    'ak_bmsc': '0137B379D5D7C94AF0E261EBB776C783~000000000000000000000000000000~YAAQB1CcJFbaTVZ8AQAAk2zeoQ37XFi3I4brh/m6frtqtCjaj2UFnnDqHdfLHg96FgYOcBCRQz1WHSd88rC0j+RZBNs2aPbr3uAtyeGz0Lacy6oTJxbVdg/FsspL1dDwzsHIzBTXzbMkeRRpuqbbSQZS0Kumf29oVoRqJixi7CszgfGsF5bEfDdKkbUhv9BtcHwivzR8D+IJPbb2t2h4yccUefBTACOMAeDCFJh67/RsJJ+T5oJCjvvYAcxsudr9oNumJNbpzQsWZDx6Wih+FzU/C2CAvWN5J/vpH0sWsQq81fuFJ4EOh3RLrz1v92pEMjjD8oknRiJad8/FigWdQUSIfrUZ+oc4rn6s3F3idt5LXhDHOD7qDYHxL7dB1RhOX0A2iohHJWluKfRYReeTdATci1swP/wGW4FS4jo9Wrj7twbw4xoaH5YIDWDrNHQBVd66niCYWlJvnkNUTnQIV7SFSj7Jn62qC/3pCHC19Q8f',
    '_gcl_au': '1.1.1424756908.1634803281',
    'ELOQUA': 'GUID=D4BF4173F7E64667B732A63DB2BE2684',
    'userType': 'Anonymous',
    'ACART': '5c5aa3c0-0d6d-4695-976c-307885718650',
    'gpn': 'Non-Product',
    'bm_sv': '207ABD935C78B1898FB9826851131869~StSGSot/GPNXkeRKhPLXtaV/SrE1wrMvJx3NdmfgMdhM30hedTWkVqxxHiV8AaEhufHX4dXflqdfqQq40DBtou3WO1VeBSAwnQGBRpbN6xzHTLn7LfnFDgLu3+X1pk6To5nw9+jLGZZyPzM9StApVahRC4IxjHYMG9OgaorQKrs=',
    'utag_main': 'v_id:017ca1de670d001cfc3dffeb49d705072005206a00978^$_sn:1^$_ss:0^$_pn:2^%^3Bexp-session^$_st:1634805299942^$ses_id:1634803279629^%^3Bexp-session^$free_trial:false',
    'ti_rid': '223ead8e',
    '_abck': '1CB53C17F93AEEC36FE4FAEC6755B7EF~-1~YAAQB1CcJNpNTlZ8AQAA6gjioQYKSWp9T8SArSbdYGEOufuo1YKshZhhuxxfAUVWSu0eyf6OReFXUxtoeAi3njNyifDLKc5JHMk6RVmWWZOimvGzF9uWhEiCx+l/tEuR1ud8MMhCvi+vgdtg81WBPlJiWj7/hJr1c+HzXX1hkbe43RwNnvslgXTZMXmQlrcs63utSraNhA8tQQIonLjdQUujZUbRVqx3X0edsw3dyuoVY6p5dAaiDT9gJI7pBPIA4Ani/77MeCDh3Y2yHluEsVABm6rFp0u/h58MmJdvqldPWnNCGpgPF8NGgINHh4DMKuEJzQJbMPSHsJY8h0mkZK/m1B9zMKhigmWhzcTR5RvLVfXjO/bW8W4D6VjFCFU5LfUWVLd18uXywC6r/t3k2MnVI2ljEH7gUcqpmw5gJ0C7hP/YGkLSak/nfZEXV+DR8ouZqvh9jBUroVYJAAY3aUSzVQ==~-1~-1~-1',
}

headers = {
    'Connection': 'keep-alive',
    'Pragma': 'no-cache',
    'Cache-Control': 'no-store, must-revalidate',
    'sec-ch-ua': '^\\^Chromium^\\^;v=^\\^94^\\^, ^\\^Google',
    'sec-ch-ua-mobile': '?0',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36',
    'Content-Type': 'application/json',
    'X-Sec-Clge-Req-Type': 'ajax',
    'Expires': '0',
    'sec-ch-ua-platform': '^\\^Windows^\\^',
    'Accept': '*/*',
    'Origin': 'https://www.ti.com.cn',
    'Sec-Fetch-Site': 'same-origin',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Dest': 'empty',
    'Referer': 'https://www.ti.com.cn/zh-cn/ordering-resources/buying-tools/quick-add-to-cart.html',
    'Accept-Language': 'zh-CN,zh;q=0.9',
}

data = '^[^\\^LM358DRG3^\\^^]'

response = requests.post('https://www.ti.com.cn/storeservices/cart/inventory', headers=headers, cookies=cookies, data=data)
print(response.text)

